package com.example.zhaojianxu.signin.securities.main

import android.os.Bundle
import android.view.View
import com.example.zhaojianxu.signin.R
import com.example.zhaojianxu.signin.bean.BaseActivity
import com.example.zhaojianxu.signin.common.info.InfoActivity
import com.example.zhaojianxu.signin.securities.buy.BuyActivity
import com.example.zhaojianxu.signin.securities.sell.SellActivity
import kotlinx.android.synthetic.main.activity_securities_main.*
import kotlinx.android.synthetic.main.common_title_bar.*

/**
 * 证券
 */
class SecuritiesMainActivity : BaseActivity() {

    override fun initView() {
        common_back.visibility = View.GONE
        common_setting.visibility = View.GONE
        common_title.text = "股票交易平台"

        activity_securities_1.setOnClickListener {
            toOtherActivity(BuyActivity::class.java)
        }

        activity_securities_2.setOnClickListener {
            toOtherActivity(SellActivity::class.java)
        }

        activity_securities_3.setOnClickListener {
            toOtherActivity(InfoActivity::class.java)
        }
    }

    override fun initData() {
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_securities_main)
    }
}
